﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Database;
using System.Collections;

namespace Business
{
    public class QuanLyTinhLuong
    {
        TrungTamEntities TrungTam;
        public QuanLyTinhLuong(){
            TrungTam = new TrungTamEntities();
        }

        public ArrayList LayDanhSachLuong()
        {
            var query = (from nv in TrungTam.NhanViens
                         select new { nv.HoTenNV, nv.NgaySinh, nv.DiaChi, nv.Luong }
                         );
            ArrayList dsLuong = new ArrayList();
            foreach(var i in query)
            {
                dsLuong.Add(i);
            }
            return dsLuong;
        }
    }
}
